<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/admin/plugin/layui/dist/css/layui.css" tppabs="http://res.layui.com/layui/dist/css/layui.css"  media="all">
    <script src="/admin/plugin/layui/dist/layui.js" charset="utf-8"></script>

    <script type="text/javascript" src="/admin/js-css/js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="/admin/js-css/js/mx1.0.js"></script>
    <script type="text/javascript" src="/admin/js-css/js/mx1.0.1.js"></script>

</head>
<body>

<form class="layui-form" action="" lay-filter="formData">
    <div class="layui-form-item">
        <label class="layui-form-label" >排序号</label>
        <div class="layui-input-block">
            <input type="text" name="show_order"   placeholder="字段排序" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">查询类型</label>
        <div class="layui-input-block">
            <select name="gs" lay-verify="required">
                <option value="0">包含</option>
                <option value="1">大于小于</option>
                <option value="2">大于</option>
                <option value="3">小于</option>
                <option value="4">不等于</option>
                <option value="6">等于</option>
            </select>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label" >数据字典key</label>
        <div class="layui-input-block">
            <input type="text" name="select_dict_id"   placeholder="选择下拉框时必须要填写" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label" >表id</label>
        <div class="layui-input-block">
            <input type="text" name="data_zygl_id"   placeholder="自定义下拉框时必须要填写" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label" >自定义下拉框实际字段</label>
        <div class="layui-input-block">
            <input type="text" name="select_v"   placeholder="自定义下拉框时必须要填写" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" >自定义下拉框显示字段</label>
        <div class="layui-input-block">
            <input type="text" name="select_text"   placeholder="自定义下拉框时必须要填写" autocomplete="off" class="layui-input">
        </div>
    </div>
</form>

<script>
    var form = null;

    //Demo
    layui.use('form', function(){
        form = layui.form;
        //监听提交
        form.on('submit(*)', function(data){
            layer.msg(JSON.stringify(data.field));
            return false;
        });
    });

    function getData() {
        var data1 = form.val("formData");
        return data1;
    }

    function setData(data) {
        //给表单赋值
        form.val("formData", data);
    }

</script>

</body>
</html>
